﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Hotnet.Dal.NSDalCommon;
using Ninject.Core;
using Hotnet.Entity;
using Hotnet.Entity.Search;

namespace Hotnet.Biz.NSBizCommon
{
	public class BizStar:BaseBiz<Star>
	{
		private static DalStar db = new DalStar();

		public BizStar() : base(db) { }


		public Star[] List(int pageNo, int pageSize, out int totalCount, SearchStarCondition ssc)
		{
			return db.List(pageNo, pageSize, out totalCount, ssc);
		}

		public void DeleteGroup(int starId)
		{
			db.DeleteBy(star => star.GroupID == starId);
			db.Delete(starId);
		}
	}
}
